package com.lonely.order.domain.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lonely.common.core.domain.BaseEntity;
import com.lonely.order.enums.OrderSplitEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * @author 黄志标
 * @date 2025-06-24 14:58
 * @Description: 订单分单关联表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_order_split")
public class SysOrderSplit extends BaseEntity implements Serializable {

    /**
     * 订单表主键id
     */
    private Long orderId;

    /**
     * 生产制单号
     */
    private Long produceOrderId;

    /**
     * 分单类型
     *
     * @see OrderSplitEnum.SplitTypeEnum
     */
    private Integer type;

    /**
     * 工厂表主键id
     */
    private Long factoryId;

    /**
     * 产线表主键id
     */
    private Long productionLineId;

    /**
     * 期望回货时间
     */
    private String expectedReturnTime;

    /**
     * 工价倍率
     */
    private String priceMultiple;

    /**
     * 状态（0：启用 1：禁用）
     */
    private Integer status;


}
